Spaces:
Runtime error
Runtime error
arjunanand13
commited on
Commit
•
78bed23
1
Parent(s):
7eb3ea0
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,6 @@ class Chatbot:
|
|
102 |
.gradio-container {
|
103 |
background-color: #daccdb;
|
104 |
}
|
105 |
-
|
106 |
/* Button styling for all buttons */
|
107 |
button {
|
108 |
background-color: #927fc7; /* Default color for all other buttons */
|
@@ -113,7 +112,6 @@ class Chatbot:
|
|
113 |
font-size: 16px; /* Increase font size */
|
114 |
font-weight: bold; /* Make text bold */
|
115 |
}
|
116 |
-
|
117 |
"""
|
118 |
EXAMPLES = ["TDA4 product planning and datasheet release progress? ",
|
119 |
"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?",
|
@@ -124,7 +122,7 @@ class Chatbot:
|
|
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 |
tabbed_interface = gr.Interface([tab1, tab2],["Textbox Input", "Dropdown Input"],title="TI E2E FORUM",theme="compact")
|
127 |
-
|
128 |
|
129 |
# Instantiate and launch the chatbot
|
130 |
chatbot = Chatbot()
|
|
|
102 |
.gradio-container {
|
103 |
background-color: #daccdb;
|
104 |
}
|
|
|
105 |
/* Button styling for all buttons */
|
106 |
button {
|
107 |
background-color: #927fc7; /* Default color for all other buttons */
|
|
|
112 |
font-size: 16px; /* Increase font size */
|
113 |
font-weight: bold; /* Make text bold */
|
114 |
}
|
|
|
115 |
"""
|
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?",
|
|
|
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()
|
126 |
|
127 |
# Instantiate and launch the chatbot
|
128 |
chatbot = Chatbot()
|