Spaces:
Sleeping
Sleeping
breadlicker45
commited on
Commit
•
68ce0a7
1
Parent(s):
28cbffb
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
6 |
model = AutoModelForCausalLM.from_pretrained("facebook/galactica-1.3b")
|
7 |
|
8 |
def text_generation(input_text, seed):
|
|
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/galactica-1.3b")
|
6 |
model = AutoModelForCausalLM.from_pretrained("facebook/galactica-1.3b")
|
7 |
|
8 |
def text_generation(input_text, seed):
|