lunarflu HF staff Anthonyg5005 commited on
Commit
bd20201
1 Parent(s): 5f43217

Swap to using Gradio Blocks for markdown (#3)

Browse files

- Swap to using Gradio Blocks for markdown (e1b8b1088db4529256ad314998162649088a967b)


Co-authored-by: Anthony Guijarro <[email protected]>

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://huggingface.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()