sailormars18 commited on
Commit
945e7fe
·
1 Parent(s): 3581479

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import subprocess
2
- subprocess.run(["pip", "install","gradio","transformers"])
 
3
  import gradio as gr
 
4
  import transformers
5
 
6
  # Define a function for generating text based on a prompt using the fine-tuned GPT-2 model and the tokenizer
 
1
  import subprocess
2
+ subprocess.run(["pip", "install","gradio","torch","transformers"])
3
+ import re
4
  import gradio as gr
5
+ import torch
6
  import transformers
7
 
8
  # Define a function for generating text based on a prompt using the fine-tuned GPT-2 model and the tokenizer