Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,8 @@ import gradio as gr
|
|
| 4 |
import random
|
| 5 |
import time
|
| 6 |
import os
|
|
|
|
|
|
|
| 7 |
|
| 8 |
API_TOKEN = os.getenv("API_TOKEN")
|
| 9 |
from huggingface_hub import InferenceApi
|
|
@@ -62,7 +64,7 @@ def infer(prompt,
|
|
| 62 |
|
| 63 |
def getdevilsadvocate(text_inp):
|
| 64 |
print(text_inp)
|
| 65 |
-
|
| 66 |
text = prompt+"\nInput:"+text_inp + "\nOutput:"
|
| 67 |
resp = infer(text,seed=random.randint(0,100))
|
| 68 |
|
|
|
|
| 4 |
import random
|
| 5 |
import time
|
| 6 |
import os
|
| 7 |
+
import datetime
|
| 8 |
+
from datetime import datetime, date, time, timedelta
|
| 9 |
|
| 10 |
API_TOKEN = os.getenv("API_TOKEN")
|
| 11 |
from huggingface_hub import InferenceApi
|
|
|
|
| 64 |
|
| 65 |
def getdevilsadvocate(text_inp):
|
| 66 |
print(text_inp)
|
| 67 |
+
print(datetime.today().strftime("%d-%m-%Y"))
|
| 68 |
text = prompt+"\nInput:"+text_inp + "\nOutput:"
|
| 69 |
resp = infer(text,seed=random.randint(0,100))
|
| 70 |
|