Update app.py
Browse files
app.py
CHANGED
@@ -43,6 +43,6 @@ def predict(text):
|
|
43 |
final_str = '\n'.join([f"{i+1}. Question: {s.split('Answer')[0].strip()}\n Answer{s.split('Answer')[1].strip()}" for i, s in enumerate(output)])
|
44 |
|
45 |
return final_str
|
46 |
-
|
47 |
iface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
48 |
iface.launch()
|
|
|
43 |
final_str = '\n'.join([f"{i+1}. Question: {s.split('Answer')[0].strip()}\n Answer{s.split('Answer')[1].strip()}" for i, s in enumerate(output)])
|
44 |
|
45 |
return final_str
|
46 |
+
|
47 |
iface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
48 |
iface.launch()
|