Spaces:
Runtime error
Runtime error
arjunanand13
commited on
Commit
•
1443530
1
Parent(s):
78bed23
Update app.py
Browse files
app.py
CHANGED
@@ -117,9 +117,16 @@ class Chatbot:
|
|
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 |
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)
|
122 |
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")
|
|
|
|
|
|
|
|
|
|
|
123 |
|
124 |
tabbed_interface = gr.Interface([tab1, tab2],["Textbox Input", "Dropdown Input"],title="TI E2E FORUM",theme="compact")
|
125 |
tabbed_interface.launch()
|
|
|
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 |
+
dummy_outputs = [gr.Textbox(label="Dummy Output")]
|
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()
|