Spaces:
Runtime error
Runtime error
lizadakhova
commited on
Commit
•
314eaeb
1
Parent(s):
1bf4212
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
title = "Ask Rick a Question"
|
2 |
description = """
|
3 |
<center>
|
@@ -8,9 +13,6 @@ The bot was trained to answer questions based on Rick and Morty dialogues. Ask R
|
|
8 |
|
9 |
article = "Check out [the original Rick and Morty Bot](https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot) that this demo is based off of."
|
10 |
|
11 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
12 |
-
import torch
|
13 |
-
|
14 |
tokenizer = AutoTokenizer.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")
|
15 |
model = AutoModelForCausalLM.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")
|
16 |
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
+
import torch
|
4 |
+
|
5 |
+
|
6 |
title = "Ask Rick a Question"
|
7 |
description = """
|
8 |
<center>
|
|
|
13 |
|
14 |
article = "Check out [the original Rick and Morty Bot](https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot) that this demo is based off of."
|
15 |
|
|
|
|
|
|
|
16 |
tokenizer = AutoTokenizer.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")
|
17 |
model = AutoModelForCausalLM.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")
|
18 |
|