Spaces:
Runtime error
Runtime error
Commit
·
3b9f81f
1
Parent(s):
35b6c2e
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
g=open('test.txt')
|
|
|
3 |
def answer(query):
|
4 |
-
out=
|
5 |
-
|
6 |
-
demo = gr.Interface(fn=answer, inputs='text',outputs='text',examples=[['song celestial']])
|
|
|
|
1 |
import gradio as gr
|
2 |
g=open('test.txt')
|
3 |
+
g1=g.read()
|
4 |
def answer(query):
|
5 |
+
out=g1
|
6 |
+
return out
|
7 |
+
demo = gr.Interface(fn=answer, inputs='text',outputs='text',examples=[['song celestial']])
|
8 |
+
demo.launch()
|