arjunanand13 commited on
Commit
123a37f
1 Parent(s): f7d7973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -189,7 +189,7 @@ def qa_infer(query):
189
 
190
  # Return the content and answer along with the download link
191
  download_link = f'<a href="file/{output_file}" download>Download Output File</a>'
192
- return content, result['answer'], download_link
193
 
194
  css_code = """
195
  .gradio-container {
@@ -213,6 +213,6 @@ EXAMPLES = ["TDA4 product planning and datasheet release progress? ",
213
  "I'm using Code Composer Studio 5.4.0.00091 and enabled FPv4SPD16 floating point support for CortexM4 in TDA2. However, after building the project, the .asm file shows --float_support=vfplib instead of FPv4SPD16. Why is this happening?",
214
  "Master core in TDA2XX is a15 and in TDA3XX it is m4,so we have to shift all modules that are being used by a15 in TDA2XX to m4 in TDA3xx."]
215
 
216
- demo = gr.Interface(fn=qa_infer, inputs=[gr.Textbox(label="QUERY", placeholder ="Enter your query here")], allow_flagging='never', examples=EXAMPLES, cache_examples=False, outputs=[gr.Textbox(label="RELATED QUERIES"), gr.Textbox(label="SOLUTION"), gr.HTML()], css=css_code)#,outputs="text")
217
  demo.launch()
218
 
 
189
 
190
  # Return the content and answer along with the download link
191
  download_link = f'<a href="file/{output_file}" download>Download Output File</a>'
192
+ return result['answer'],content, download_link
193
 
194
  css_code = """
195
  .gradio-container {
 
213
  "I'm using Code Composer Studio 5.4.0.00091 and enabled FPv4SPD16 floating point support for CortexM4 in TDA2. However, after building the project, the .asm file shows --float_support=vfplib instead of FPv4SPD16. Why is this happening?",
214
  "Master core in TDA2XX is a15 and in TDA3XX it is m4,so we have to shift all modules that are being used by a15 in TDA2XX to m4 in TDA3xx."]
215
 
216
+ demo = gr.Interface(fn=qa_infer, inputs=[gr.Textbox(label="QUERY", placeholder ="Enter your query here")], allow_flagging='never', examples=EXAMPLES, cache_examples=False, outputs=[gr.Textbox(label="SOLUTION"), gr.Textbox(label="RELATED QUERIES"), gr.HTML()], css=css_code)#,outputs="text")
217
  demo.launch()
218