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