shoom013 commited on
Commit
a8a7a4b
·
verified ·
1 Parent(s): 52231bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -150,10 +150,7 @@ def rag(input_text, history, jezik, file):
150
  # Interface
151
  # gr.Textbox(label="Pitanje:", lines=6),
152
  # outputs=[gr.Textbox(label="Odgovor:", lines=6)],
153
- with gr.Blocks as iface:
154
- j = gr.Dropdown(["slovenski", "hrvatski", "srpski", "makedonski", "Eksperimentalna opcija"], value="srpski", label="Jezik", info="N/A")
155
-
156
- gr.ChatInterface(rag,
157
  title="Kako Vam mogu pomoći?",
158
  description="Postavite pitanje ili opišite problem koji imate",
159
  chatbot=gr.Chatbot(height=300),
@@ -164,7 +161,8 @@ with gr.Blocks as iface:
164
  retry_btn=None,
165
  undo_btn="Briši prethodno",
166
  clear_btn="Briši sve",
167
- additional_inputs = [j, gr.File()]
 
168
  )
169
 
170
  #with gr.Blocks() as iface:
 
150
  # Interface
151
  # gr.Textbox(label="Pitanje:", lines=6),
152
  # outputs=[gr.Textbox(label="Odgovor:", lines=6)],
153
+ iface = gr.ChatInterface(rag,
 
 
 
154
  title="Kako Vam mogu pomoći?",
155
  description="Postavite pitanje ili opišite problem koji imate",
156
  chatbot=gr.Chatbot(height=300),
 
161
  retry_btn=None,
162
  undo_btn="Briši prethodno",
163
  clear_btn="Briši sve",
164
+ additional_inputs = [gr.Dropdown(["slovenski", "hrvatski", "srpski", "makedonski", "Eksperimentalna opcija"], value="srpski", label="Jezik", info="N/A"),
165
+ gr.File()]
166
  )
167
 
168
  #with gr.Blocks() as iface: