Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,20 +116,20 @@ class Chatbot:
|
|
| 116 |
EXAMPLES = ["TDA4 product planning and datasheet release progress? ",
|
| 117 |
"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?",
|
| 118 |
"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."]
|
|
|
|
| 119 |
dropdown = gr.Dropdown(label="Sample queries", choices=EXAMPLES)
|
| 120 |
|
| 121 |
-
|
| 122 |
|
| 123 |
tab1 = gr.Interface(fn=self.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)
|
| 124 |
tab2 = gr.Interface(fn=self.qa_infer, inputs=[dropdown], allow_flagging='never', outputs=[gr.Textbox(label="SOLUTION"), gr.Textbox(label="RELATED QUERIES"), gr.HTML()], css=css_code, title="Dropdown Input")
|
| 125 |
|
| 126 |
|
| 127 |
-
# Add dummy outputs to each interface
|
| 128 |
-
tab1.outputs = dummy_outputs
|
| 129 |
-
tab2.outputs = dummy_outputs
|
| 130 |
|
| 131 |
-
tabbed_interface = gr.Interface([tab1, tab2],["Textbox Input", "Dropdown Input"],title="TI E2E FORUM",theme="compact")
|
| 132 |
-
tabbed_interface.launch()
|
| 133 |
|
| 134 |
# Instantiate and launch the chatbot
|
| 135 |
chatbot = Chatbot()
|
|
|
|
| 116 |
EXAMPLES = ["TDA4 product planning and datasheet release progress? ",
|
| 117 |
"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?",
|
| 118 |
"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."]
|
| 119 |
+
|
| 120 |
dropdown = gr.Dropdown(label="Sample queries", choices=EXAMPLES)
|
| 121 |
|
| 122 |
+
|
| 123 |
|
| 124 |
tab1 = gr.Interface(fn=self.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)
|
| 125 |
tab2 = gr.Interface(fn=self.qa_infer, inputs=[dropdown], allow_flagging='never', outputs=[gr.Textbox(label="SOLUTION"), gr.Textbox(label="RELATED QUERIES"), gr.HTML()], css=css_code, title="Dropdown Input")
|
| 126 |
|
| 127 |
|
| 128 |
+
# # Add dummy outputs to each interface
|
| 129 |
+
# tab1.outputs = dummy_outputs
|
| 130 |
+
# tab2.outputs = dummy_outputs
|
| 131 |
|
| 132 |
+
tabbed_interface = gr.Interface([tab1, tab2],["Textbox Input", "Dropdown Input"],title="TI E2E FORUM",theme="compact").launch(debug=True)
|
|
|
|
| 133 |
|
| 134 |
# Instantiate and launch the chatbot
|
| 135 |
chatbot = Chatbot()
|