yalrashed commited on
Commit
c7a56f2
·
verified ·
1 Parent(s): ad779b6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import google.generativeai as genai
3
+ import os
4
+
5
+ def process_pdf(pdf_file):
6
+ # For initial testing
7
+ return "PDF processed", "Coverage generated"
8
+
9
+ demo = gr.Interface(
10
+ fn=process_pdf,
11
+ inputs=gr.File(label="Upload Screenplay PDF", file_types=[".pdf"]),
12
+ outputs=[
13
+ gr.Textbox(label="Cleaned Text"),
14
+ gr.Textbox(label="Coverage")
15
+ ],
16
+ title="Screenplay Coverage Generator"
17
+ )
18
+
19
+ if __name__ == "__main__":
20
+ demo.launch()