Elijahbodden commited on
Commit
2ddacc1
·
verified ·
1 Parent(s): 714741c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,5 +1,11 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
 
 
 
 
 
3
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ from transformers import AutoTokenizer, TextIteratorStreamer, GenerationConfig, AutoModelForCausalLM
4
+ import torch
5
+
6
+ model_id = "Elijahbodden/merged"
7
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
8
+ sober_model = AutoModelForCausalLM.from_pretrained(model_id)
9
 
10
  """
11
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference