akhaliq HF Staff commited on
Commit
ee175f9
·
verified ·
1 Parent(s): ff50948

Update app.py from anycoder

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -1,5 +1,3 @@
1
- <|begin_of_box|># Image Chatbot Application
2
-
3
  import gradio as gr
4
  import os
5
  from openai import OpenAI
@@ -60,10 +58,7 @@ def process_message(message, history, image):
60
  yield error_msg, history + [(message, error_msg)]
61
 
62
  # Create Gradio interface
63
- with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue")) as demo:
64
- gr.Markdown("# 🤖 Image Chatbot")
65
- gr.Markdown("Chat with an AI that can understand images! Upload an image and ask questions about it.")
66
-
67
  # Add the "Built with anycoder" link
68
  gr.Markdown(
69
  '<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" style="text-decoration: none;">'
@@ -120,10 +115,11 @@ if __name__ == "__main__":
120
  server_name="0.0.0.0",
121
  server_port=7860,
122
  share=False,
 
123
  footer_links=[
124
  {
125
  "label": "Built with anycoder",
126
  "url": "https://huggingface.co/spaces/akhaliq/anycoder"
127
  }
128
  ]
129
- )<|end_of_box|>
 
 
 
1
  import gradio as gr
2
  import os
3
  from openai import OpenAI
 
58
  yield error_msg, history + [(message, error_msg)]
59
 
60
  # Create Gradio interface
61
+ with gr.Blocks() as demo:
 
 
 
62
  # Add the "Built with anycoder" link
63
  gr.Markdown(
64
  '<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" style="text-decoration: none;">'
 
115
  server_name="0.0.0.0",
116
  server_port=7860,
117
  share=False,
118
+ theme=gr.themes.Soft(primary_hue="blue"),
119
  footer_links=[
120
  {
121
  "label": "Built with anycoder",
122
  "url": "https://huggingface.co/spaces/akhaliq/anycoder"
123
  }
124
  ]
125
+ )