Spaces:
Runtime error
Runtime error
Commit
·
a423ef0
1
Parent(s):
5cbcd89
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,3 @@
|
|
1 |
-
import pandas as pd
|
2 |
-
import gradio as gr
|
3 |
-
import re
|
4 |
-
import torch
|
5 |
-
import transformers
|
6 |
-
|
7 |
# Define a function for generating text based on a prompt using the fine-tuned GPT-2 model and the tokenizer
|
8 |
def generate_text(prompt, length=100, theme=None, **kwargs):
|
9 |
model_url = "https://huggingface.co/sailormars18/Yelp-reviews-usingGPT2"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Define a function for generating text based on a prompt using the fine-tuned GPT-2 model and the tokenizer
|
2 |
def generate_text(prompt, length=100, theme=None, **kwargs):
|
3 |
model_url = "https://huggingface.co/sailormars18/Yelp-reviews-usingGPT2"
|