Anthonyg5005 commited on
Commit
e1b8b10
1 Parent(s): 5f43217

Swap to using Gradio Blocks for markdown

Browse files

Instead of using the greet demo interface, switch to a static markdown page.

Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -463,8 +463,10 @@ def run_bot():
463
 
464
  threading.Thread(target=run_bot).start()
465
 
466
- def greet(name):
467
- return "Hello " + name + "!"
468
-
469
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
470
  demo.launch()
 
463
 
464
  threading.Thread(target=run_bot).start()
465
 
466
+ with gr.Blocks() as demo:
467
+ gr.Markdown(
468
+ r"""
469
+ # Client for the [HuggingFace Discord](https://hf.co/join/discord) bot
470
+ All code for this bot is under the [app.py](https://huggingface.co/spaces/discord-community/HuggingMod/blob/main/app.py) file.
471
+ """)
472
  demo.launch()