EliottZemour commited on
Commit
861be40
1 Parent(s): 75533f2

update app

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -47,7 +47,7 @@ This space demonstrates how synthetic data generation can be performed on natura
47
 
48
  | review id | stars | useful | funny | cool | text |
49
  |:---:|:---:|:---:|:---:|:---:|:---:|
50
- | 0 | 5 | 1 | 0 | 1 | Wow! Yummy, different, delicious...
51
 
52
 
53
 
@@ -56,9 +56,9 @@ The model is a fine-tuned version of [facebook/bart-base](https://huggingface.co
56
 
57
  - **Input**: "Generate review: stars: 5, useful: 1, funny: 0, cool: 1"
58
  - **Output**: "Wow! Yummy, different, delicious. Our favorite is the lamb curry and korma. With 10 different kinds of naan!!! Don't let the outside deter you (because we almost changed our minds)...go in and try something new! You'll be glad you did!"
 
59
 
60
-
61
- ## Resources
62
  - The Yelp reviews dataset can be found in json format [here](https://www.yelp.com/dataset)."""
63
 
64
  demo = gr.Blocks(css=css)
@@ -79,6 +79,9 @@ with demo:
79
  output2 = gr.Textbox(label="Review #2")
80
  output3 = gr.Textbox(label="Review #3")
81
 
 
 
 
82
  button.click(
83
  fn=generate_reviews,
84
  inputs=[stars, useful, funny, cool],
 
47
 
48
  | review id | stars | useful | funny | cool | text |
49
  |:---:|:---:|:---:|:---:|:---:|:---:|
50
+ | 0 | 5 | 1 | 0 | 1 | "Wow! Yummy, different, delicious. Our favorite is the lamb curry and korma. With 10 different kinds of naan!!! Don't let the outside deter you (because we almost changed our minds)...go in and try something new! You'll be glad you did!"
51
 
52
 
53
 
 
56
 
57
  - **Input**: "Generate review: stars: 5, useful: 1, funny: 0, cool: 1"
58
  - **Output**: "Wow! Yummy, different, delicious. Our favorite is the lamb curry and korma. With 10 different kinds of naan!!! Don't let the outside deter you (because we almost changed our minds)...go in and try something new! You'll be glad you did!"
59
+ """
60
 
61
+ resources = """## Resources
 
62
  - The Yelp reviews dataset can be found in json format [here](https://www.yelp.com/dataset)."""
63
 
64
  demo = gr.Blocks(css=css)
 
79
  output2 = gr.Textbox(label="Review #2")
80
  output3 = gr.Textbox(label="Review #3")
81
 
82
+ with gr.Row():
83
+ gr.Markdown(resources)
84
+
85
  button.click(
86
  fn=generate_reviews,
87
  inputs=[stars, useful, funny, cool],