Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +1,8 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
def
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
iface = gr.Interface(
|
11 |
-
fn=read_pdf,
|
12 |
-
inputs=gr.inputs.File(type="file", label="Upload PDF"),
|
13 |
-
outputs="text",
|
14 |
-
title="PDF Processor",
|
15 |
-
description="Upload a PDF file to process."
|
16 |
-
)
|
17 |
-
|
18 |
-
iface.launch()
|
|
|
1 |
+
#!pip install gradio
|
2 |
+
import gradio as gra
|
3 |
+
def user_greeting(name):
|
4 |
+
return "Hi! " + name + " Welcome to your first Gradio application!😎"
|
5 |
+
|
6 |
+
#define gradio interface and other parameters
|
7 |
+
app = gra.Interface(fn = user_greeting, inputs="text", outputs="text")
|
8 |
+
app.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|