nginx / app.py
Xiao
deploy HF
4214f3f
raw
history blame contribute delete
510 Bytes
# import gradio as gr
# def greet(name):
# return "Hello " + name + "!"
# with gr.Blocks() as blocks:
# with gr.Row():
# text_in = gr.Text()
# text_out = gr.Text()
# btn = gr.Button("Run")
# btn.click(fn=greet, inputs=text_in, outputs=text_out)
# blocks.queue()
# blocks.launch()
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8000, debug=True)