Spaces:
Sleeping
Sleeping
syedmudassir16
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -172,36 +172,18 @@ if __name__ == "__main__":
|
|
172 |
"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?",
|
173 |
"Could you clarify the maximum number of cameras that can be connected simultaneously to the video input ports on the TDA2x SoC, considering it supports up to 10 multiplexed input ports and includes 3 dedicated video input modules?"
|
174 |
]
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
with open(file_path, "r") as file:
|
179 |
-
content = file.read()
|
180 |
-
ticket_names = json.loads(content)
|
181 |
-
dropdown = gr.Dropdown(label="Sample queries", choices=ticket_names)
|
182 |
-
|
183 |
-
tab1 = gr.Interface(
|
184 |
fn=doc_retrieval_gen.qa_infer_gradio,
|
185 |
inputs=[gr.Textbox(label="QUERY", placeholder="Enter your query here")],
|
186 |
allow_flagging='never',
|
187 |
examples=EXAMPLES,
|
188 |
cache_examples=False,
|
189 |
outputs=[gr.Textbox(label="RESPONSE"), gr.Textbox(label="RELATED QUERIES")],
|
190 |
-
css=css_code
|
191 |
-
|
192 |
-
tab2 = gr.Interface(
|
193 |
-
fn=doc_retrieval_gen.qa_infer_gradio,
|
194 |
-
inputs=[dropdown],
|
195 |
-
allow_flagging='never',
|
196 |
-
outputs=[gr.Textbox(label="SOLUTION"), gr.Textbox(label="RELATED QUERIES")],
|
197 |
-
css=css_code
|
198 |
)
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
["Textbox Input", "FAQs"],
|
203 |
-
title="TI E2E FORUM",
|
204 |
-
css=css_code
|
205 |
-
).launch(debug=True)
|
206 |
-
|
207 |
launch_interface()
|
|
|
172 |
"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?",
|
173 |
"Could you clarify the maximum number of cameras that can be connected simultaneously to the video input ports on the TDA2x SoC, considering it supports up to 10 multiplexed input ports and includes 3 dedicated video input modules?"
|
174 |
]
|
175 |
+
|
176 |
+
interface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
fn=doc_retrieval_gen.qa_infer_gradio,
|
178 |
inputs=[gr.Textbox(label="QUERY", placeholder="Enter your query here")],
|
179 |
allow_flagging='never',
|
180 |
examples=EXAMPLES,
|
181 |
cache_examples=False,
|
182 |
outputs=[gr.Textbox(label="RESPONSE"), gr.Textbox(label="RELATED QUERIES")],
|
183 |
+
css=css_code,
|
184 |
+
title="TI E2E FORUM"
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
)
|
186 |
+
|
187 |
+
interface.launch(debug=True)
|
188 |
+
|
|
|
|
|
|
|
|
|
|
|
189 |
launch_interface()
|