Jesse Henson commited on
Commit
9d60c0d
·
1 Parent(s): bb78d1f

added resume upload

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -3,5 +3,13 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
+ def upload_resume(file):
7
+ # Here you can process the uploaded file
8
+ # For now, let's just return a success message
9
+ return "File uploaded successfully!"
10
+
11
+ iface_greet = gr.Interface(fn=greet, inputs="text", outputs="text")
12
+ iface_resume = gr.Interface(fn=upload_resume, inputs=gr.inputs.File(), outputs="text")
13
+
14
+ iface_greet.launch()
15
+ iface_resume.launch()