ncoop57
commited on
Commit
•
872ae6a
1
Parent(s):
883ac11
Fix radio issue
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ AUTO = Autocards()
|
|
10 |
|
11 |
def cardify(content, mode):
|
12 |
global AUTO
|
13 |
-
|
14 |
AUTO.clear_qa()
|
15 |
if mode != "raw" and mode != "url":
|
16 |
r = requests.get(content)
|
@@ -47,7 +47,7 @@ def cardify(content, mode):
|
|
47 |
|
48 |
iface = gr.Interface(
|
49 |
fn=cardify,
|
50 |
-
inputs=["text", gr.Radio(["
|
51 |
outputs="text"
|
52 |
)
|
53 |
iface.launch()
|
|
|
10 |
|
11 |
def cardify(content, mode):
|
12 |
global AUTO
|
13 |
+
|
14 |
AUTO.clear_qa()
|
15 |
if mode != "raw" and mode != "url":
|
16 |
r = requests.get(content)
|
|
|
47 |
|
48 |
iface = gr.Interface(
|
49 |
fn=cardify,
|
50 |
+
inputs=["text", gr.inputs.Radio(["raw", "epub", "pdf", "textfile", "url"])],
|
51 |
outputs="text"
|
52 |
)
|
53 |
iface.launch()
|