inLine-XJY commited on
Commit
8333e16
1 Parent(s): 74004ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,14 +4,14 @@ import gradio
4
 
5
 
6
  def my_inference_function(name):
 
7
  with open("./word.txt",'r') as f:
8
  prompts = f.readlines()
9
-
10
- return "Hello " + prompts + "!"
11
 
12
  gradio_interface = gradio.Interface(
13
- fn = my_inference_function,
14
- inputs = "text",
15
- outputs = "text"
16
  )
17
  gradio_interface.launch()
 
4
 
5
 
6
  def my_inference_function(name):
7
+ prompts = ''
8
  with open("./word.txt",'r') as f:
9
  prompts = f.readlines()
10
+ return "Hello " + prompts + "!"
 
11
 
12
  gradio_interface = gradio.Interface(
13
+ fn = my_inference_function,
14
+ inputs = "text",
15
+ outputs = "text"
16
  )
17
  gradio_interface.launch()