Ticio commited on
Commit
76c91f8
·
verified ·
1 Parent(s): 2adb573

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -1,21 +1,21 @@
1
- import gradio as gr
2
- from inference import inference
3
-
4
- theme = theme = gr.themes.Soft(
5
- primary_hue="red",
6
- secondary_hue="red",
7
- )
8
-
9
- with gr.Blocks(theme = theme) as demo:
10
- with gr.Row():
11
- gr.HTML("""
12
- <div style="display: flex; align-items: center;">
13
- <img src="https://ticio.co/public/Branding/ticio.svg" alt="Logo" style="width: 50px; height: auto; margin-right: 10px;">
14
- <h1 style="color: #910A0A; margin: 0;">Ticio</h1>
15
- </div>
16
- """) # Replace with your logo image URL
17
- chatbot = gr.Chatbot(type="messages")
18
- hidden_text = gr.Textbox(visible = False) # Added hidden text component
19
- gr.ChatInterface(fn=inference, chatbot=chatbot, show_api=False, type="messages", additional_inputs= hidden_text, additional_outputs= hidden_text, save_history= True).render()
20
-
21
- demo.launch(show_api=False, debug= True, share=True)
 
1
+ import gradio as gr
2
+ from inference import inference
3
+
4
+ theme = theme = gr.themes.Soft(
5
+ primary_hue="red",
6
+ secondary_hue="red",
7
+ )
8
+
9
+ with gr.Blocks(theme = theme) as demo:
10
+ with gr.Row():
11
+ gr.HTML("""
12
+ <div style="display: flex; align-items: center;">
13
+ <img src="https://ticio.co/public/Branding/ticio.svg" alt="Logo" style="width: 50px; height: auto; margin-right: 10px;">
14
+ <h1 style="color: #910A0A; margin: 0;">Ticio</h1>
15
+ </div>
16
+ """) # Replace with your logo image URL
17
+ chatbot = gr.Chatbot(type="messages")
18
+ hidden_text = gr.Textbox(visible = False) # Added hidden text component
19
+ gr.ChatInterface(fn=inference, chatbot=chatbot, type="messages", additional_inputs= hidden_text, additional_outputs= hidden_text, save_history= True).render()
20
+
21
+ demo.launch()