Petzys commited on
Commit
4abf067
·
1 Parent(s): 531cc62

Fix: Gradio theme

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -120,7 +120,7 @@ EXPLANATION
120
  if __name__ == "__main__":
121
  # --- UI ---
122
  prometheus_helper.setup_prometheus()
123
- with gr.Blocks(theme='gstaff/xkcd') as demo:
124
  gr.Markdown("# xkcd Comic Finder")
125
  gr.Markdown(
126
  "Sign in with your Hugging Face account so the app can call the model via the Inference API."
@@ -143,4 +143,4 @@ if __name__ == "__main__":
143
  global meta
144
  index, meta = get_index()
145
  embedder = SentenceTransformer("all-MiniLM-L6-v2")
146
- demo.launch()
 
120
  if __name__ == "__main__":
121
  # --- UI ---
122
  prometheus_helper.setup_prometheus()
123
+ with gr.Blocks() as demo:
124
  gr.Markdown("# xkcd Comic Finder")
125
  gr.Markdown(
126
  "Sign in with your Hugging Face account so the app can call the model via the Inference API."
 
143
  global meta
144
  index, meta = get_index()
145
  embedder = SentenceTransformer("all-MiniLM-L6-v2")
146
+ demo.launch(theme='gstaff/xkcd')