Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,6 @@ DATA_FILENAME = "premise_input.csv"
|
|
| 11 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
| 12 |
|
| 13 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 14 |
-
print("is none?", HF_TOKEN is None)
|
| 15 |
|
| 16 |
repo = Repository(
|
| 17 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
|
@@ -58,10 +57,11 @@ demo = gr.Interface(fn=mr_bot,
|
|
| 58 |
outputs="text",
|
| 59 |
title="Mr. Bot",
|
| 60 |
description=description,
|
| 61 |
-
examples = [["Write me a rap song about how the price of rent is too high."]
|
|
|
|
| 62 |
)
|
| 63 |
|
| 64 |
if __name__ == "__main__":
|
| 65 |
demo.launch(enable_queue=False,
|
| 66 |
auth=lambda u, p: user_db.get(u) == p,
|
| 67 |
-
auth_message="Welcome!
|
|
|
|
| 11 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
| 12 |
|
| 13 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
|
|
|
| 14 |
|
| 15 |
repo = Repository(
|
| 16 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
|
|
|
| 57 |
outputs="text",
|
| 58 |
title="Mr. Bot",
|
| 59 |
description=description,
|
| 60 |
+
examples = [["Write me a rap song about how the price of rent is too high.", 800, .75],
|
| 61 |
+
["Make a weekly meal plan for me comprised of an entirely vegan diet.", 800, .50]]
|
| 62 |
)
|
| 63 |
|
| 64 |
if __name__ == "__main__":
|
| 65 |
demo.launch(enable_queue=False,
|
| 66 |
auth=lambda u, p: user_db.get(u) == p,
|
| 67 |
+
auth_message="Welcome!")
|