GustavoYe commited on
Commit
3203f38
1 Parent(s): 7c8ea93
Files changed (2) hide show
  1. app.py +5 -2
  2. requirements.txt +4 -0
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
2
 
 
3
  def greet(name):
4
- return "Hello " + name + "!!"
 
 
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
1
  import gradio as gr
2
 
3
+
4
  def greet(name):
5
+ import torch
6
+ return f"Hello {name}, we are using torch {torch.__version__}"
7
+
8
 
9
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
10
+ iface.launch()
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ h5py==3.1.0
2
+ numpy==1.19.5
3
+ pandas==1.1.5
4
+ torch==1.10.0