File size: 423 Bytes
45e807f fd8ca64 45e807f fd8ca64 45e807f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
from mega import Mega
import os
def greet(name):
return "Hello " + name + "!!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
mega = Mega()
mega_user_name = os.getenv('MEGA_USERNAME')
mega_password = os.getenv('MEGA_PASSWORD')
# Print the username and password (for debugging purposes)
print("MEGA Username:", mega_user_name)
print("MEGA Password:", mega_password)
demo.launch()
|