Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import gradio as gr
|
| 4 |
|
|
@@ -24,9 +25,9 @@ def find_reviews(uid):
|
|
| 24 |
raise e
|
| 25 |
if len(review_list) == 0:
|
| 26 |
review_list = pd.DataFrame([{"Error": "UID Not Found"}])
|
| 27 |
-
print(f"Not Found uid: [{uid}]")
|
| 28 |
else:
|
| 29 |
-
print("Found rows:", sorted(rows))
|
| 30 |
return review_list[:3]
|
| 31 |
|
| 32 |
demo = gr.Interface(
|
|
@@ -34,4 +35,4 @@ demo = gr.Interface(
|
|
| 34 |
inputs="text",
|
| 35 |
outputs=gr.Dataframe(headers=["Name", "Presentation Path"]),
|
| 36 |
)
|
| 37 |
-
demo.launch(debug=False)
|
|
|
|
| 1 |
import os
|
| 2 |
+
import time
|
| 3 |
import pandas as pd
|
| 4 |
import gradio as gr
|
| 5 |
|
|
|
|
| 25 |
raise e
|
| 26 |
if len(review_list) == 0:
|
| 27 |
review_list = pd.DataFrame([{"Error": "UID Not Found"}])
|
| 28 |
+
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), f"Not Found uid: [{uid}]")
|
| 29 |
else:
|
| 30 |
+
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), "Found rows:", sorted(rows))
|
| 31 |
return review_list[:3]
|
| 32 |
|
| 33 |
demo = gr.Interface(
|
|
|
|
| 35 |
inputs="text",
|
| 36 |
outputs=gr.Dataframe(headers=["Name", "Presentation Path"]),
|
| 37 |
)
|
| 38 |
+
demo.launch(debug=False)
|