amish1706 commited on
Commit
3e3bd02
·
verified ·
1 Parent(s): 50d00ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,9 +70,6 @@ def upload_file(data_file):
70
  json.dump(data, f)
71
 
72
  with gr.Blocks() as demo:
73
- with gr.Column():
74
- u = gr.UploadButton("Upload a file", file_count="single")
75
- u.upload(upload_file, u)
76
  gr.ChatInterface(
77
  generate_response,
78
  chatbot=gr.Chatbot(height=500),
@@ -82,6 +79,9 @@ with gr.Blocks() as demo:
82
  undo_btn="Delete Previous",
83
  clear_btn="Clear",
84
  )
 
 
 
85
 
86
  demo.launch()
87
 
 
70
  json.dump(data, f)
71
 
72
  with gr.Blocks() as demo:
 
 
 
73
  gr.ChatInterface(
74
  generate_response,
75
  chatbot=gr.Chatbot(height=500),
 
79
  undo_btn="Delete Previous",
80
  clear_btn="Clear",
81
  )
82
+ with gr.Column():
83
+ u = gr.UploadButton("Upload a file", file_count="single")
84
+ u.upload(upload_file, u)
85
 
86
  demo.launch()
87