jozzy commited on
Commit
d4eb91d
·
1 Parent(s): d5742b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -206,6 +206,7 @@ with gr.Blocks() as pinecone_tools:
206
 
207
 
208
  textbox = gr.inputs.Textbox(label="Vector Server Index Name: ", default="amd")
 
209
  answerbox = gr.inputs.Textbox(label="Assistant answer")
210
  contextbox = gr.Markdown(label="Context found")
211
 
@@ -221,7 +222,7 @@ vector_server = gr.Interface(fn=process_file, inputs=["text", gr.inputs.File(fil
221
 
222
  #audio = gr.Interface(fn=audioGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs="text")
223
  #siri = gr.Interface(fn=siriGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs = "audio")
224
- file = gr.Interface(fn=fileSearch, inputs=[textbox, "text"], outputs=[contextbox1, contextbox2, contextbox3], description = "This tab shows the top three most related contexts in the repository.")
225
  #demo = gr.TabbedInterface([role, text, file, vector_server, pinecone_tools, chatHistory], [ "roleChoice", "Talk2File", "FileSearch", "VectorServer", "PineconeTools", "ChatHistory"])
226
 
227
  demo = gr.TabbedInterface([text, file, chatHistory], [ "ROCm Usage Tutor", "Top 3 Context", "ChatHistory"])
 
206
 
207
 
208
  textbox = gr.inputs.Textbox(label="Vector Server Index Name: ", default="amd")
209
+ textbox2 = gr.inputs.Textbox(label="Vector Server Index Name: ", default="amd")
210
  answerbox = gr.inputs.Textbox(label="Assistant answer")
211
  contextbox = gr.Markdown(label="Context found")
212
 
 
222
 
223
  #audio = gr.Interface(fn=audioGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs="text")
224
  #siri = gr.Interface(fn=siriGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs = "audio")
225
+ file = gr.Interface(fn=fileSearch, inputs=[textbox2, "text"], outputs=[contextbox1, contextbox2, contextbox3], description = "This tab shows the top three most related contexts in the repository.")
226
  #demo = gr.TabbedInterface([role, text, file, vector_server, pinecone_tools, chatHistory], [ "roleChoice", "Talk2File", "FileSearch", "VectorServer", "PineconeTools", "ChatHistory"])
227
 
228
  demo = gr.TabbedInterface([text, file, chatHistory], [ "ROCm Usage Tutor", "Top 3 Context", "ChatHistory"])