Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,9 @@ def fetch_reviews(place_id: str, reviews_limit: int, ranking: str):
|
|
| 32 |
interface = gr.Interface(
|
| 33 |
fn=fetch_reviews,
|
| 34 |
inputs=[
|
| 35 |
-
gr.components.Textbox(label="Google Maps Place ID",
|
| 36 |
-
gr.components.Slider(minimum=1, maximum=5,
|
| 37 |
-
gr.components.Dropdown(choices=["most_relevant", "newest"], label="Reviews Ranking Type",
|
| 38 |
],
|
| 39 |
outputs=gr.components.Textbox(),
|
| 40 |
live=True,
|
|
@@ -43,7 +43,4 @@ interface = gr.Interface(
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# If you're testing locally:
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
# If deploying to Hugging Face Spaces:
|
| 49 |
-
interface.serve()
|
|
|
|
| 32 |
interface = gr.Interface(
|
| 33 |
fn=fetch_reviews,
|
| 34 |
inputs=[
|
| 35 |
+
gr.components.Textbox(label="Google Maps Place ID", placeholder="ChIJN1t_tDeuEmsRUsoyG83frY4"),
|
| 36 |
+
gr.components.Slider(minimum=1, maximum=5, label="Number of Reviews", value=3),
|
| 37 |
+
gr.components.Dropdown(choices=["most_relevant", "newest"], label="Reviews Ranking Type", value="most_relevant")
|
| 38 |
],
|
| 39 |
outputs=gr.components.Textbox(),
|
| 40 |
live=True,
|
|
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# If you're testing locally:
|
| 46 |
+
interface.launch()
|
|
|
|
|
|
|
|
|