Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
def
|
4 |
-
|
5 |
-
|
6 |
-
start_message = "Good morning" if is_morning else "Good evening"
|
7 |
-
greetings = f"{start_message} {name}."
|
8 |
-
today_message = f"Today is {today}."
|
9 |
-
return greetings, today_message
|
10 |
|
11 |
demo = gr.Interface(
|
12 |
-
fn=
|
13 |
-
inputs=["text"
|
14 |
-
outputs=["text", "text"],
|
15 |
)
|
16 |
|
17 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
input_text="Please upload a PDF file that contains an abstract. You will receive a one sentence summary of the PDF and you can listen to that summary too"
|
3 |
+
def request_pdf(input_text):
|
4 |
+
greetings = f"{input_text}"
|
5 |
+
return
|
|
|
|
|
|
|
|
|
6 |
|
7 |
demo = gr.Interface(
|
8 |
+
fn=request_pdf,
|
9 |
+
inputs=["text"]
|
|
|
10 |
)
|
11 |
|
12 |
+
demo.launch()
|