Spaces:
Runtime error
Runtime error
Fix imports
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ os.system('pip install git+https://github.com/huggingface/transformers --upgrade
|
|
4 |
import gradio as gr
|
5 |
from transformers import ImageGPTFeatureExtractor, ImageGPTForCausalLM
|
6 |
import torch
|
|
|
7 |
import requests
|
8 |
from PIL import Image
|
9 |
-
import os
|
10 |
import matplotlib.pyplot as plt
|
11 |
|
12 |
feature_extractor = ImageGPTFeatureExtractor.from_pretrained("openai/imagegpt-small")
|
|
|
4 |
import gradio as gr
|
5 |
from transformers import ImageGPTFeatureExtractor, ImageGPTForCausalLM
|
6 |
import torch
|
7 |
+
import numpy as np
|
8 |
import requests
|
9 |
from PIL import Image
|
|
|
10 |
import matplotlib.pyplot as plt
|
11 |
|
12 |
feature_extractor = ImageGPTFeatureExtractor.from_pretrained("openai/imagegpt-small")
|