shoom013 commited on
Commit
b4b4c5c
·
verified ·
1 Parent(s): fbdfa3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -107,7 +107,7 @@ def resetChat():
107
  chat_engine.reset()
108
  return True
109
 
110
- def rag(input_text, history, jezik):
111
  # if (btn):
112
  # resetChat()
113
  print(history, input_text)
@@ -169,9 +169,9 @@ iface = gr.ChatInterface(rag,
169
  retry_btn=None,
170
  undo_btn="Briši prethodno",
171
  clear_btn="Briši sve",
172
- # additional_inputs = [gr.Dropdown(["slovenski", "hrvatski", "srpski", "makedonski", "Eksperimentalna opcija"], value="srpski", label="Jezik", info="N/A"),
173
- # gr.File()
174
- # ]
175
  )
176
 
177
  #with gr.Blocks() as iface:
 
107
  chat_engine.reset()
108
  return True
109
 
110
+ def rag(input_text, history, jezik, file):
111
  # if (btn):
112
  # resetChat()
113
  print(history, input_text)
 
169
  retry_btn=None,
170
  undo_btn="Briši prethodno",
171
  clear_btn="Briši sve",
172
+ additional_inputs = [gr.Dropdown(["slovenski", "hrvatski", "srpski", "makedonski", "Eksperimentalna opcija"], value="srpski", label="Jezik", info="N/A"),
173
+ gr.File()
174
+ ]
175
  )
176
 
177
  #with gr.Blocks() as iface: